// 分销
import http from "../common/http.js";

export default {
  // 申请股东
  apply: (data, needLoading) => {
    return http.POST("/share-holder/apply", data, needLoading);
  },
  // 团队列表
  group: (data, needLoading) => {
    return http.GET("/share-holder/group", data, needLoading);
  },
  // 团队列表
  holderLevel: (data, needLoading) => {
    return http.GET("/share-holder/holder-level", data, needLoading);
  },
  // 订单列表
  shareOrder: (data, needLoading) => {
    return http.GET("/share-holder/share-order", data, needLoading);
  },
  // 股东分销
  holderShareOrder: (data, needLoading) => {
    return http.GET("/share-holder/holder-share-order", data, needLoading);
  },
  // 首页数据
  index: (data, needLoading) => {
    return http.GET("/share-holder/index", data, needLoading);
  },
  // 提现配置
  withdrawConfig: (data, needLoading) => {
    return http.GET("/share-holder/get-price", data, needLoading);
  },
  // 提现
  cashSubmitApply: (data, needLoading) => {
    return http.POST("/share-holder/cash-apply", data, needLoading);
  },
  // 添加提现方式
  addWithdraw(data, needLoading) {
    return http.POST("/share-holder/add-cash-method", data, needLoading);
  },
  // 获取提现方式列表
  getWithdraw(data, needLoading) {
    return http.GET("/share-holder/get-cash-method", data, needLoading);
  },
  // 删除提现方式
  delWithdraw(data, needLoading) {
    return http.POST("/share-holder/del-cash-method", data, needLoading);
  },
  // 提现列表
  cashDetail(data, needLoading) {
    return http.GET("/share-holder/cash-detail", data, needLoading);
  },
  // 佣金列表
  profitList(data, needLoading) {
    return http.GET("/share-holder/profit-list", data, needLoading);
  },
  // 佣金列表
  getQrcode(data, needLoading) {
    return http.GET("/share-holder/get-qrcode", data, needLoading);
  },
  // 股东申请
  applyStatus: (data, needLoading) => {
    return http.GET("/share-holder/audit-status", data, needLoading);
  },
  // 股东申请配置
  applyConfig: (data, needLoading) => {
    return http.GET("/share-holder/other-info", data, needLoading);
  },
  // 冻结佣金
  frostList: (data, needLoading) => {
    return http.GET("/share-holder/frost-list", data, needLoading);
  },
  // 获取默认股东升级商品
  defaultLevelGoods: (data, needLoading) => {
    return http.GET("/share-holder/default-level-goods", data, needLoading);
  },

  areaAgentApply: (data, needLoading) => {
    return http.POST("/share-holder/area-agent-apply", data, needLoading);
  },
  getAreaAgentApply: (data, needLoading) => {
    return http.GET("/share-holder/get-area-agent-apply", data, needLoading);
  },
  getAreaAgentInfo: (data, needLoading) => {
    return http.GET("/share-holder/get-area-agent-info", data, needLoading);
  },
  getFugouInfo: (data, needLoading) => {
    return http.GET("/share-holder/get-fugou-info", data, needLoading);
  },
  addFugouCart: (data, needLoading) => {
    return http.POST("/share-holder/fugou-cart", data, needLoading);
  },
  getFugouFrostLog: (data, needLoading) => {
    return http.GET("/share-holder/fugou-frost-log", data, needLoading);
  },
};
